# encoding=utf-8
from sqlalchemy_serializer import SerializerMixin

from app import dBSession
from app.Models.BaseModel import BaseModel
from app.Models.Model import PlayersModel
from app.Vendor.Utils import Utils


class Players(PlayersModel, BaseModel, SerializerMixin):

    @staticmethod
    def getPlayerList():
        players = dBSession.query(Players).all()
        return Utils.db_l_to_d(players)




